<?php
declare (strict_types = 1);

namespace app\model;

use app\model\scope\ScopeName;

/**
 * @mixin \think\Model
 */
class Role extends BaseModel
{
    use ScopeName;
    public function routesRelation()
    {
        return $this->hasOne(RoleRoutesRelation::class, 'role_id', 'id')->bind(['relation_id'=>'id','routes_ids', 'all_ids']);
    }
}
